<template>
  <div>
    <h1>今日热点新闻</h1>
    <ul>
      <li v-for="item of newData" :key="item">{{ item }}</li>
    </ul>
  </div>
</template>

<script>
export default {
  name: "News",
  mounted() {
    console.log(this.$route.query, "news");
  },
  computed: {
    newData() {
      return this.$route.query.new;
    },
  },
};
</script>

<style>
</style>